<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 接口配置
// +----------------------------------------------------------------------

return [

    // oss图片路径
    'oss_img_path'        => 'https://mingjingji.oss-cn-beijing.aliyuncs.com/',

    //环信
    'hx_appkey'           =>  '1115180904253341#mijingji',
    'hx_org_name'         =>  '1115180904253341',
    'hx_app_name'         =>  'mijingji',
    'hx_client_id'        =>  'YXA6n7jEILNNEei0PHnA3UpQyw',
    'hx_client_secret'    =>  'YXA692luKXQe0doYKS89yg0qNGTyzy4',
    'register_salt'       =>  'sdgJSDsdfj$324%^#*',


    //价格区间
    'price_range'         => array(
        ['price_type'=>1,'title'=>'30w以下','min'=>0,'max'=>30],
        ['price_type'=>2,'title'=>'30-50w','min'=>30,'max'=>50],
        ['price_type'=>3,'title'=>'50-80w','min'=>50,'max'=>80],
        ['price_type'=>4,'title'=>'80-100w','min'=>80,'max'=>100],
        ['price_type'=>5,'title'=>'100-150w','min'=>100,'max'=>150],
        ['price_type'=>6,'title'=>'150-200w','min'=>150,'max'=>200],
        ['price_type'=>7,'title'=>'200-300w','min'=>200,'max'=>300],
        ['price_type'=>8,'title'=>'300w以上','min'=>300,'max'=>0],
    ),

     //房型
    'house_types'         => array(
        ['house_type'=>1,'title'=>'一室'], ['house_type'=>2,'title'=>'两室'], ['house_type'=>3,'title'=>'三室'],
        ['house_type'=>4,'title'=>'四室'], ['house_type'=>5,'title'=>'五室'], ['house_type'=>0,'title'=>'五室以上'],
    ),

    //楼层类型
    'floor_types'         => array(
        ['floor_type'=>1,'title'=>'低层'], ['floor_type'=>2,'title'=>'中层'], ['floor_type'=>3,'title'=>'高层']
    ),

    //面积范围
    'area_range'          => array(
        ['min'=>0,'max'=>30,'area_type'=>1,'title'=>'30m²以下'],    ['min'=>30,'max'=>50,'area_type'=>2,'title'=>'30-50m²'],
        ['min'=>50,'max'=>70,'area_type'=>3,'title'=>'50-70m²'],   ['min'=>70,'max'=>90,'area_type'=>4,'title'=>'70-90m²'],
        ['min'=>90,'max'=>120,'area_type'=>5,'title'=>'90-120m²'],  ['min'=>120,'max'=>150,'area_type'=>6,'title'=>'120-150m²'],
        ['min'=>150,'max'=>200,'area_type'=>7,'title'=>'150-200m²'], ['min'=>200,'max'=>300,'area_type'=>8,'title'=>'200-300m²'],
        ['min'=>300,'max'=>0,'area_type'=>9,'title'=>'300m²以上']
    ),

    //朝向
    'aspect'              => array(
        ['aspect_id'=>1,'aspect_name'=>'朝东'],   ['aspect_id'=>2,'aspect_name'=>'朝南'], ['aspect_id'=>3,'aspect_name'=>'朝西'], ['aspect_id'=>4,'aspect_name'=>'朝北'],
        ['aspect_id'=>5,'aspect_name'=>'朝东南'], ['aspect_id'=>6,'aspect_name'=>'朝西南'], ['aspect_id'=>7,'aspect_name'=>'朝东北'], ['aspect_id'=>8,'aspect_name'=>'朝西北']
    ),

    //用途
    'purpose'             => array(
        ['prupose_id'=>1,'title'=>'普通住宅'],  ['prupose_id'=>2,'title'=>'商业类'], ['prupose_id'=>3,'title'=>'别墅'],
        ['prupose_id'=>4,'title'=>'四合院'],    ['prupose_id'=>0,'title'=>'其他'],
    ),

    //海外房源用途
    'overseas_purpose'  =>array(
        ['prupose_id'=>1,'title'=>'普通住宅'],  ['prupose_id'=>2,'title'=>'商业类'], ['prupose_id'=>3,'title'=>'别墅'],
        ['prupose_id'=>4,'title'=>'庄园'],    ['prupose_id'=>0,'title'=>'其他'],
    ),

    //数字大写
    'numberToChinese'     => array(
        1=>'一', 2=>'两', 3=>'三', 4=>'四', 5=>'五', 6=>'六', 7=>'七', 8=>'八', 9=>'九'
    ),

    //新盘售卖情况
    'sell_case'           => array(

        ['sell_state'=>1,'title'=>'在售'], ['sell_state'=>3,'title'=>'未开盘'], ['sell_state'=>2,'title'=>'售罄']
    ),

    //开盘时间
    'house_open_time'     => array(

        ['time_type'=>1,'title'=>'近期开盘'],['time_type'=>2,'title'=>'未来一个月'],['time_type'=>3,'title'=>'未来三个月'],
        ['time_type'=>4,'title'=>'未来半年'],['time_type'=>5,'title'=>'过去一个月'],['time_type'=>6,'title'=>'过去三个月']
    ),

    //供暖方式
    'heating'             => array(
        1=>'暂无信息', 2=>'供暖方式2', 3=>'供暖方式3'
    ),

    'carport_types'       => array(
        1=>'车位充足' ,  2=>'有车位' ,3=>'暂无车位'
    ),

    //产权所属
    'transaction_types'   => array(
        1=>'非公有' , 2=>'共有'
    ),

    //交易权属
    'property_right_types'=> array(
        1=>'商品房' , 2=>'自建房'
    ),

    //租房类型
    'rent_types'          => array(
        ['rent_type'=>0,'title'=>'不限'], ['rent_type'=>1,'title'=>'整租'], ['rent_type'=>2,'title'=>'合租'],
    ),

    //租房价格区间
    'rent_price_range'    => array(
        ['min'=>0,'max'=>1000,'price_type'=>1,'title'=>'1000元以下'],
        ['min'=>1000,'max'=>1500,'price_type'=>2,'title'=>'1000-1500元'],
        ['min'=>1500,'max'=>2000,'price_type'=>3,'title'=>'1500-2000元'],
        ['min'=>2000,'max'=>2500,'price_type'=>4,'title'=>'2000-2500元'],
        ['min'=>2500,'max'=>0,'price_type'=>5,'title'=>'2500元以上'],
    ),

    //装修情况
    'fitment_case'         => array(
        ['fitment_type'=>1, 'title'=>'精装修'], ['fitment_type'=>2, 'title'=>'豪华装修'],
        ['fitment_type'=>3, 'title'=>'普通装修'], ['fitment_type'=>4, 'title'=>'毛坯']
    ),

    //楼龄范围
    'house_age_range'      => array(
        ['min'=>0, 'max'=>5,'age_type'=>1,'title'=>'5年内'],
        ['min'=>5, 'max'=>10,'age_type'=>1,'title'=>'5-10年'],
        ['min'=>10, 'max'=>20,'age_type'=>1,'title'=>'10-20年'],
        ['min'=>20, 'max'=>0,'age_type'=>1,'title'=>'20年以上'],
    ),

    //家居属性
     'furniture_store_attrs'     => array(
        ['attr_type'=>1,'title'=>'橱柜'], ['attr_type'=>2,'title'=>'瓷砖'], ['attr_type'=>3,'title'=>'地板'],
        ['attr_type'=>4,'title'=>'房门'], ['attr_type'=>5,'title'=>'卫浴浴具'], ['attr_type'=>6,'title'=>'家用电器'],
        ['attr_type'=>5,'title'=>'智能家居'],  ['attr_type'=>5,'title'=>'沙发床垫']
    ),

    //家居价格范围
    'furniture_store_price_range' => array(
        ['price_type'=>1,'title'=>'500-1000','min'=>500,'max'=>1000], 
        ['price_type'=>2,'title'=>'1000-5000','min'=>1000,'max'=>5000],
        ['price_type'=>3,'title'=>'1-3w','min'=>1,'max'=>3],
        ['price_type'=>4,'title'=>'3-10w','min'=>3,'max'=>10],
        ['price_type'=>5,'title'=>'10w以上','min'=>10,'max'=>0]

    ),


    //装修属性
    'fitment_store_attrs'     => array(
        ['attr_type'=>1,'title'=>'新房'], ['attr_type'=>2,'title'=>'二手房'], ['attr_type'=>3,'title'=>'大宅别墅'],
        ['attr_type'=>4,'title'=>'局部'], ['attr_type'=>5,'title'=>'软装'],
    ),


    //装修价格范围
    'fitment_store_price_range' => array(
        ['min'=>1,'max'=>3,'price_type'=>1,'title'=>'1-3w'],
        ['min'=>3,'max'=>5,'price_type'=>2,'title'=>'3-5w'],
        ['min'=>5,'max'=>10,'price_type'=>3,'title'=>'5-10w',],
        ['min'=>10,'max'=>20,'price_type'=>4,'title'=>'10-20w',],
        ['min'=>20,'max'=>0,'price_type'=>5,'title'=>'20w以上',],
    ),


    //租房配置
    'allocations'  => array(
        '床','衣柜','空调','冰箱','洗衣机','热水器','沙发'
    ),


    //时间选项
    'dayTimes' =>array(

        '00:00', '01:00', '02:00', '03:00', '04:00', '05:00', '06:00', '07:00', '08:00', '09:00', '10:00', '11:00', '12:00',
        '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00',
    ),


    //标签类型
    'label_types' =>array(
        1=>'新楼盘',2=>'二手房',3=>'出租房',4=>'海外房源'
    ),

    //标签颜色
    'label_colors' =>array(
        1=>'red',2=>'green',3=>'purple',4=>'blue'
    )
];
